package com.r_z.service;

import com.r_z.entity.OrderDetails;
import com.r_z.entity.SalesOrder;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author z
 * @version 1.0
 * @date 2023/5/29
 */
@Transactional
public interface SalesOrderService {
    /**销售订单查询*/
    List<SalesOrder> salesOrderList(String strWhere,int page,int limit);
    /**
     * 销售订单总数
     * @param strWhere
     * @return
     */
    int count(String strWhere);
   /**新增销售订单*/
  int insertSalesOrder(SalesOrder salesOrder);
  /**修改销售订单*/
   int updateSalesOrder(SalesOrder salesOrder);
   /**删除销售订单*/
   int deleteSalesOrder(String  salesOrderId);

    /**
     * 销售订单详情查询
     * @param salesOrderId 销售订单Id
     * @return
     */
    List<OrderDetails> OrderDetails(String salesOrderId);
}
